package com.dks.mapper;

import java.time.LocalDateTime;
import java.util.List;

import com.dks.models.student.PositionWait;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PositionWaitMapper{

    Integer insert(PositionWait positionWait);

    PositionWait select(@Param("id") Long id);

    /**根据课程系列id查询排队记录*/
    List<PositionWait> getListByClassSeriesId(@Param("qsClassSeriesId")Long qsClassSeriesId, @Param("studentId")Long studentId);

    /** 获取取消次数 */
    Integer getCancelNum(@Param("userId")Long userId, @Param("startTime") LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);

    /** 取消等位 */
    Integer remove(@Param("id")Long id);

}
